/*
 * System_Message.cpp
 *
 *  Created on: Jun 21, 2009
 *      Author: ortal
 */


#include "System_Message.h"


//for killNode, reviveNode, printRt
System_Message::System_Message(string com, int uniqeId)
{
	_command = com;
	_uniqeId = uniqeId;
}


//for killall
System_Message::System_Message(string com)
{
	_command = com;
}

//for sendPacket
System_Message::System_Message(string com, int source, int target, string txt)
{
	_command = com;
	_source = source;
	_target = target;
	_txt = txt;
}


string System_Message::getCommand()
{
	return _command;
}

int System_Message::getUniqeId()
{
	return _uniqeId;
}

int System_Message::getSource()
{
	return _source;
}

int System_Message::getTarget()
{
	return _target;
}

string System_Message::getTxt()
{
	return _txt;
}
